package com.rd.teacher.jichao.day12;

import java.util.Date;

public class TestSleep {

    public static void main(String[] args) {
        long before = System.currentTimeMillis();
        System.out.println(before);
//        Date date = new Date();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        long after = System.currentTimeMillis();
        System.out.println(after);
        System.out.println(after - before);
    }
}
